import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
// Vue.pro.$axios = axios;
const app = createApp(App);
// global 全局的意思
app.directive('back', {
  mounted(el, binding, vnode, prevVNode) {
    el.style.color = 'red';
  },
});
app.config.globalProperties.$axios = axios; // 往全局挂在一个请求的方法
app.use(store).use(router).mount('#app');
